Cache usage index calculation device, cache usage index calculation method, and cache usage index calculation program

ABSTRACT

A cache usage indicator calculation apparatus ( 1 ) includes: a memory for reading and writing data; a cache that can be accessed more rapidly than the memory; a central processing unit configured to read and write from and to the memory and the cache and execute processing; a usage state measurement unit configured to measure a usage state of the cache used by an application ( 11   a,    11   b ) executed by the central processing unit; a performance measurement unit configured to measure a cache sensitivity and/or a cache pollutivity relating to an application ( 11   a,    11   b ); and an indicator calculation unit configured to, based on a performance deterioration of a pre-selected plurality of applications and the usage state of the cache, calculate an indicator for the cache sensitivity and/or an indicator for the cache pollutivity of each application.

TECHNICAL FIELD

The present invention relates to a cache usage indicator calculationapparatus, a cache usage indicator calculation method, and a cache usageindicator calculation program.

BACKGROUND ART

A cache memory is a high-speed small-capacity memory that is used toconceal delay in a main memory when a central processing unit (CPU)accesses data, a command, or the like. A cache memory is important whena computer increases the speed of processing of an application.

FIG. 9 is a graph showing a relationship between cache occupancy amountsof applications and performance. Note that FIG. 9 is a citation of agraph published in NPL 1.

The horizontal axis of the graph indicates the cache occupancy amount,and the vertical axis of the graph indicates the normalized performance.The diamond-shaped plots are plots relating to Povray. The square plotsare plots relating to Bzip2. The triangular plots are plots relating toMCF. The X-shaped plots are plots relating to Bwaves.

As indicated by this graph, when the occupancy amount of the cachedecreases, the cache miss count increases. With Bwaves, the performancedecreases by about 60% when the cache occupancy amount is 0 MB comparedto when the cache occupancy amount is 15 MB.

Cache Allocation Technology refers to a function by which a CPU canrestrict and control use of a final-level cache for each application.

FIG. 10 is a diagram showing an example of 16-bit Cache AllocationTechnology.

As described in NPL 2, Cache Allocation Technology is installed, whichis a function by which use of a final-level cache can be restricted andcontrolled for each application, from the Intel Xeon (registeredtrademark) processor E5 2600 v3 product family released in September2014.

With these processors, it is possible to determine the level of Class ofService (CLOS) for each application process, and the range up to whichthe final-level cache is to be used for each CLOS is controlled with acapacity mask.

In the example shown in FIG. 10, for CLOS[0], four is are set from the15th bit to the 12th bit, which indicates that ¼ of the final-levelcache is used. Note that 1s are set from the 15th bit to the 12th bitonly for CLOS[0], which indicates that an application of CLOS[0]occupies the regions corresponding to these bits. Note that each bit ofCLOS[n] corresponds to a region of the final-level cache.

For CLOS[1], four is are set from the 11th bit to the 8th bit, whichindicates that ¼ of the final-level cache is used. Note that 1s are setfrom the 11th bit to the 8th bit only for CLOS[1], which indicates thatan application of CLOS[1] occupies the regions corresponding to thesebits.

For CLOS[2], six is are set from the 7th bit to the 2nd bit, whichindicates that ⅜ of the final-level cache is used. Note that is aresimilarly set from the 7th bit to the 2nd bit for CLOS[3] as well, whichindicates that applications of CLOS[2] and CLOS[3] share the regionscorresponding to these bits.

For CLOS[3], eight is are set from the 7th bit to the 0th bit, whichindicates that ½ of the final-level cache is used. Note that is aresimilarly set from the 7th bit to the 2nd bit for CLOS[3] as well, whichindicates that an application of CLOS[2] and an application of CLOS[3]share the regions corresponding to these bits. This indicates that isare set from the 1st bit to the 0th bit only for CLOS[3], and anapplication of CLOS[3] occupies the regions corresponding to these bits.

CITATION LIST Non-Patent Literature

-   [NPL 1] Nguyen, Khang T, “Intel's Cache Monitoring Technology: Use    Models and Data”, [online], published on Dec. 11, 2014, updated Mar.    31, 2016, [searched for on Jul. 25, 2019], Internet <URL:    https://software.intel.com/en-us/blogs/2014/12/11/intels-cache-monitoring-technology-use-models-and-data>-   [NPL 2] “Usage Models for Cache Allocation Technology in the Intel    Xeon Processor E5 v4 family”, [online], [searched for on Jul. 25,    2019], Internet <URL:    https://software.intel.com/en-us/articles/cache-allocation-technology-usage-models>

SUMMARY OF THE INVENTION Technical Problem

The degree to which the performance obtained when multiple applicationsoperate deteriorates relative to the performance obtained when a singleapplication operates is called the cache sensitivity of the application.When performing tuning using Cache Allocation Technology, the inventorsthought of a policy of allocating many cache memories to an applicationwith a high cache sensitivity. This makes it possible to improve theperformance of the application.

The degree to which the performance of another application 11deteriorates when multiple applications operate is called the cachepollutivity of that application. The inventors thought of a policy ofallocating a small amount of cache memory to an application with a highcache pollutivity. This makes it possible to suppress the influence onanother application when the application operates.

In view of this, the present invention aims to calculate the cachesensitivity and the cache pollutivity based on the cache usage state ofeach application.

Means for Solving the Problem

In order to solve the above-described problem, a cache usage indicatorcalculation apparatus of the present invention includes:

a memory for reading and writing data;

a cache that can be accessed more rapidly than the memory;

a central processing unit configured to read and write from and to thememory and the cache and execute processing;

a usage state measurement unit configured to measure a usage state ofthe cache used by an application executed by the central processingunit;

a performance measurement unit configured to measure a cache sensitivityand a cache pollutivity relating to an application; and

an indicator calculation unit configured to, based on performancedeterioration of a pre-selected plurality of applications and the usagestate of the cache, calculate an indicator for the cache sensitivityand/or an indicator for the cache pollutivity of each application.

Other means will be described in the mode for carrying out theinvention.

Effects of the Invention

According to the present invention, it is possible to calculate thecache sensitivity and the cache pollutivity based on the cache usagestate of each application.

BRIEF DESCRIPTION OF DRAWINGS

FIG. 1 is a diagram showing a configuration of a cache evaluationindicator acquisition system of the present embodiment.

FIG. 2 is a block diagram showing a cache usage indicator calculationunit.

FIG. 3 is a (first) flowchart showing processing for calculating apartial regression coefficient for the cache sensitivity and a partialregression coefficient for the cache pollutivity of a representativeapplication.

FIG. 4 is a (second) flowchart showing processing for calculating apartial regression coefficient for the cache sensitivity and a partialregression coefficient for the cache pollutivity of a representativeapplication.

FIG. 5 is a diagram illustrating an operation for calculating the cachesensitivity and the cache pollutivity of each application.

FIG. 6 is a flowchart showing processing for calculating the cachesensitivity and the cache pollutivity of a given application.

FIG. 7 is a diagram showing the state of caches when multipleapplications operate at the same time on a physical host.

FIG. 8 is a diagram showing the state of caches when a singleapplication operates on a physical host.

FIG. 9 is a graph showing a relationship between cache occupancy amountsand performances of applications.

FIG. 10 is a diagram showing an example of 16-bit Cache AllocationTechnology.

DESCRIPTION OF EMBODIMENTS

Hereinafter, an embodiment of the present invention will be described indetail with reference to the drawings.

BACKGROUND DESCRIPTION OF THE INVENTION

If multiple virtual machines operate at the same time on a physicalhost, there is a risk that a cache conflict will occur and theperformance will decrease.

FIG. 7 is a diagram showing the state of each cache when multipleapplications run at the same time on a physical host. FIG. 8 is adiagram showing the state of each cache when a single application runson a physical host.

A physical host 3 is constituted by including CPU (Central ProcessingUnit) cores 31 a to 31 d, primary cache memories 32 a to 32 d, secondarycache memories 33 a to 33 d, a tertiary cache memory 34, and a mainmemory 35. The main memory 35 is a RAM (Random Access Memory) forreading and writing data. The primary cache memories 32 a to 32 d, thesecondary cache memories 33 a to 33 d, and the tertiary cache memory 34are storage regions that can be accessed more rapidly than the mainmemory 35. The CPU cores 31 a to 31 d are central processing units thatexecute processing by reading and writing from and to the primary cachememories 32 a to 32 d, the secondary cache memories 33 a to 33 d, thetertiary cache memory 34, and the main memory 35.

In a multi-core configuration, which is mainstream for current CPUs,multiple CPU cores 31 a to 31 d commonly share a lower-order cache suchas the tertiary cache memory 34. Hereinafter, when no particulardistinction is made between the CPU cores 31 a to 31 d, they will simplybe described as “CPU cores 31”.

Multiple applications 11 a to 11 d operate on the physical host 3 shownin FIG. 7. Hereinafter, when no particular distinction is made betweenthe applications 11 a to 11 d, they will simply be described as“applications 11”.

The application 11 a occupies the CPU core 31 a, the primary cachememory 32 a, and the secondary cache memory 33 a, and further sharespart of the tertiary cache memory 34.

The application 11 b occupies the CPU core 31 b, the primary cachememory 32 b, and the secondary cache memory 33 b, and further sharespart of the tertiary cache memory 34.

The application 11 c occupies the CPU core 31 c, the primary cachememory 32 c, and the secondary cache memory 33 c, and further sharespart of the tertiary cache memory 34.

The application 11 d occupies the CPU core 31 d, the primary cachememory 32 d, and the secondary cache memory 33 d, and further sharespart of the tertiary cache memory 34.

When multiple applications 11 a to 11 d run on the same node, thetertiary cache memory 34 is polluted by the applications 11 a to 11 dand the number of cache misses relatively increases. The CPU core 31 inwhich the cache miss has occurred needs to go reference the main memory35, which takes more than double the time to access compared to thetertiary cache memory 34. The applications 11 cause a decrease inperformance resulting from penalties for such a cache miss. This iscalled a cache conflict caused by multiple applications 11.

In contrast to this, a single application 11 a operates on the physicalhost 3 shown in FIG. 8. When the single application 11 a runs, a stateis entered in which the tertiary cache memory 34, which is a sharedcache memory, is occupied. At this time, no other applications 11 areoperating, and therefore cache pollution does not occur.

Embodiments of the Present Invention

FIG. 1 is a diagram showing a configuration of a cache evaluationindicator acquisition system 1 of the present embodiment.

The cache evaluation indicator acquisition system 1 is constituted byincluding an OS (Operating System) 2 that operates on the physical host3, multiple applications 11 a and 11 b that operate on the OS 2, and acache usage indicator calculation unit 12. Note that in FIG. 1, thecache usage indicator calculation unit 12 is written as “CUI” (CacheUsage Indicator calculation).

The physical host 3 is a combination of a central processing unit,caches, and memories for causing the OS 2, the applications 11 a and 11b, and the cache usage indicator calculation unit 12 to operate, and forexample, is configured similarly to the physical host 3 shown in FIGS. 7and 8.

The OS 2 is basic software for controlling execution of a program thatoperates on the physical host 3, and performs job management,input/output control, data management, and processing relating thereto.

The applications 11 a and 11 b are programs that operate in theenvironments of the physical host 3 and the OS 2 respectively. Theapplications 11 a and 11 b may also be virtual machines or containers.

A desired amount of cache memory can be allocated to the applications 11a and 11 b by setting up a capacity mask of the CLOS corresponding tothe applications 11 a and 11 b. Hereinafter, when no particulardistinction is made between the applications 11 a and 11 b, they aresimply written as “applications 11”.

The cache usage indicator calculation unit 12 is a portion that tunesthe cache allocation amounts of the applications 11 that operate on thephysical host 3. The function of the cache usage indicator calculationunit 12 is realized by a processor (not shown) of the physical host 3executing a program for cache tuning.

FIG. 2 is a block diagram showing the cache usage indicator calculationunit 12.

The cache usage indicator calculation unit 12 is constituted byincluding a cache usage amount measurement unit 121, an applicationperformance measurement unit 122, a cache evaluation indicatorcalculation unit 123, a sensitivity calculation unit 124, a pollutivitycalculation unit 125, and a database unit 126.

The cache usage amount measurement unit 121 acquires values relating tothe cache and cache usage parameters regarding how the cache is beingused by the applications 11. That is, the cache usage amount measurementunit 121 functions as a usage state measurement unit for measuring theusage state of the tertiary cache memory 34 by the applications 11executed by the CPU cores 31. These applications 11 include virtualmachines, containers, and the like.

The values relating to the cache and the cache usage parameters are, forexample, a cache prefetch count, a cache reference count, a cache hitcount, a cache miss count, a cache miss rate, a dTLB load count, a dTLBmiss count, and a dTLB miss rate. The values relating to the cache andthe cache usage parameters of the measured applications 11 are stored inthe database unit 126.

The application performance measurement unit 122 measures theperformance of each application 11. The application performancemeasurement unit 122 measures the performance in which case where eachapplication 11 operates alone, and measures the performance in the casewhere two applications 11 operate in combination with each other. Themeasured performance of each application 11 is stored in the databaseunit 126. Accordingly, the application performance measurement unit 122calculates the performance deterioration that occurs when multipleapplications 11 operate compared to the performance obtained when eachapplication 11 operates alone. That is, the application performancemeasurement unit 122 functions as a performance measurement unit thatmeasures the cache sensitivities and the cache pollutivities relating tothe applications 11.

The cache evaluation indicator calculation unit 123 calculatesindicators for the cache sensitivities and indicators for the cachepollutivities based on the performance deterioration obtained by theapplication performance measurement unit 122 and the measurement amountobtained by the cache usage amount measurement unit 121.

The sensitivity calculation unit 124 calculates the sensitivities ofthese applications 11 by statistically processing the performancesobtained when the applications 11 operate alone and the performancesobtained when multiple applications 11 operate, the applications 11having been extracted as representative applications. Furthermore, thesensitivity calculation unit 124 calculates the cache sensitivity of anew application 11 based on how the application 11 is using the cacheand the cache sensitivity of the application 11.

The pollutivity calculation unit 125 calculates the pollutivities ofthese applications 11 by statistically processing the performancesobtained when the applications 11 operate alone and the performancesobtained when multiple applications 11 operate, the applications 11having been extracted as representative applications. Furthermore, thepollutivity calculation unit 125 calculates the cache pollutivity of anew application 11 based on how the application 11 is using the cache,and the indicator for the cache pollutivity of the application 11.

The sensitivity calculation unit 124 and the pollutivity calculationunit 125 function as calculation units that calculate the cachesensitivities and/or the cache pollutivities of the applications basedon the partial regression coefficients and the cache usage state.

FIGS. 3 and 4 are flowcharts showing processing for calculating apartial regression coefficient for a cache sensitivity and a partialregression coefficient for a cache pollutivity of a representativeapplication 11.

In steps S10 to S12, the cache usage indicator calculation unit 12repeatedly performs processing regarding each application 11 extractedas being representative. Here, it is desirable that as many applicationsas possible that are to be used as the CPU benchmark are extracted andprocessed by the cache usage indicator calculation unit 12.

In step S11, the application performance measurement unit 122 measuresthe performances obtained when the applications operate alone, and thecache usage amount measurement unit 121 measures the cache usageparameters.

In step S12, the cache usage indicator calculation unit 12 determineswhether or not all of the applications 11 have been processed. If thereis an unprocessed application 11, the cache usage indicator calculationunit 12 returns to step S10 and repeatedly performs processing. If allof the applications 11 have been processed, the cache usage indicatorcalculation unit 12 advances to step S13.

In steps S13 to S16, the cache usage indicator calculation unit 12repeatedly performs processing on combinations of two applications whoseperformances obtained during individual operation were measured.

The application performance measurement unit 122 measures theperformance by causing both combined applications 11 to operate (S14),and stores the measured performance data in the database unit 126.

Furthermore, the application performance measurement unit 122 calculatesthe deterioration degree of the performances of both applications 11(S15) and stores the calculated performance deterioration degree in thedatabase unit 126.

In step S16, the cache usage indicator calculation unit 12 determineswhether or not all combinations of the applications 11 have beenprocessed. If there is an unprocessed combination of applications 11,the cache usage indicator calculation unit 12 returns to step S13 andrepeatedly performs processing. If all combinations of the applications11 have been processed, the cache usage indicator calculation unit 12advances to step S17.

In steps S17 to S20, the cache usage indicator calculation unit 12repeatedly performs processing for each application 11 extracted asbeing representative.

The sensitivity calculation unit 124 calculates the cache sensitivity byfinding the average of the degree by which the performance obtained whenmultiple applications 11 operate deteriorates relative to theperformance obtained when an application 11 operates alone (S18).

The pollutivity calculation unit 125 calculates the cache pollutivity byfinding the average of the degrees to which the performances of theother applications 11 deteriorate when multiple applications 11 operate(S19).

In step S20, the cache usage indicator calculation unit 12 determineswhether or not all of the applications 11 have been processed. If thereis an unprocessed application 11, the cache usage indicator calculationunit 12 returns to step S17 and repeatedly performs processing. If allof the applications 11 have been processed, the cache usage indicatorcalculation unit 12 advances to step S21.

The description will continue with reference to FIG. 4. Steps S21 to S24are processing for calculating an indicator for the cache sensitivity,and steps S25 to S28 are processing for calculating an indicator for thecache pollutivity.

The cache evaluation indicator calculation unit 123 sets the cachesensitivity of each application 11 as a target variable Y (S21).

The cache evaluation indicator calculation unit 123 sets the cache usageparameters of each application as descriptive variables X₀, X₁, . . .(S22). Here, the cache prefetch count, the cache reference count, thecache hit count, the cache miss count, the cache miss rate, the dTLBload count, the dTLB miss count, the dTLB miss rate, and the like areallocated to each descriptive variable X₀, X₁, . . . . Note that thetarget variable Y and the descriptive variables X₀, X₁, . . . satisfythe following Formula (1).

[Math. 1]

Y=b ₀ X ₀ +b ₁ X ₁ +b ₂ X ₂ +b ₃ X ₃+  (1)

Here, the partial regression coefficients b₀, b₁, . . . are indicatorsfor the cache sensitivity.

The cache evaluation indicator calculation unit 123 calculates thepartial regression coefficients b₀, b₁, . . . based on the targetvariable Y and the descriptive variables X₀, X₁, . . . (S23), andrecords the calculated partial regression coefficients b₀, b₁, . . . inthe database unit 126 (S24).

The cache evaluation indicator calculation unit 123 sets the cachepollutivity of each application 11 as the target variable Y (S25) andsets the cache usage parameters of each application 11 as thedescriptive variables X₀, X₁, . . . (S26). Note that the target variableY and the descriptive variables X₀, X₁, . . . satisfy the followingFormula (2).

[Math. 2]

Y=c ₀ X ₀ +c ₁ X ₁ +c ₂ X ₂ +c ₃ X ₃+  (2)

Here, the partial regression coefficients c₀, c₁, . . . are indicatorsfor the cache sensitivity.

The cache evaluation indicator calculation unit 123 calculates thepartial regression coefficients c₀, c₁, . . . based on the targetvariable Y and the descriptive variables X₀, X₁, . . . (S27). That is,the cache usage parameter that relates to the cache pollutivity of theapplication 11 is found, and weighting is performed. The cacheevaluation indicator calculation unit 123 records the calculated partialregression coefficients c₀, c₁, . . . in the database unit 126 (S28),and the processing of FIG. 4 ends.

With this processing, the partial regression coefficients b₀, b₁, . . .are calculated as indicators of the cache sensitivity, and the partialregression coefficients c₀, c₁, . . . are calculated as indicators ofthe cache pollutivity. The cache sensitivity and the cache pollutivitycorresponding to the target variable Y can be calculated throughmeasurement of these partial regression coefficients and the cache usageparameters corresponding to the descriptive coefficients X₀, X₁, . . .for an unknown application 11.

FIG. 5 is a diagram illustrating measurement data for calculating thecache sensitivity and the cache pollutivity of each application.

The second to thirteenth rows indicate the applications for which thedegree of performance deterioration was measured. The second tothirteenth columns indicate other applications that were operated incombination with the applications indicated in the rows.

The fourteenth row indicates the average values of the values from thesecond row to the thirteenth row of each column. These are themeasurement values of the cache pollutivity for the applicationsindicated in the first row of the columns.

The fourteenth column indicates the average value of the values from thesecond column to the thirteenth column of each row. This is the resultof measuring the cache sensitivity for the application indicated in thefirst column of that row.

FIG. 6 is a flowchart showing processing for calculating the cachesensitivity and the cache pollutivity of a given application.

First, the cache usage amount measurement unit 121 measures the cacheusage parameter obtained when a given application 11 is operated (S40).

The sensitivity calculation unit 124 calculates the cache sensitivity ofthe application 11 based on the partial regression coefficients b₀, b₁,. . . that were calculated in advance and the cache usage parameters ofthe application 11.

The sensitivity calculation unit 124 calculates the cache pollutivity ofthe application 11 based on the partial regression coefficients c₀, c₁,. . . that were calculated in advance and the cache usage parameters ofthe application 11 (S42), and ends the processing of FIG. 6.

Effects of the Present Embodiment

The cache sensitivity and cache pollutivity of a given application canbe measured easily. This makes it possible to provide indicators fortuning of a cache memory to a user.

Configuration of Above-Described Embodiment and Operations and EffectsThereof

(1) The cache usage indicator calculation apparatus is characterized byincluding:

a memory for reading and writing data;

a cache that can be accessed more rapidly than the memory;

a central processing unit configured to read and write from and to thememory and the cache and execute processing;

a usage state measurement unit configured to measure a usage state ofthe cache used by an application executed by the central processingunit;

a performance measurement unit configured to measure a cache sensitivityand a cache pollutivity relating to an application; and

an indicator calculation unit configured to, based on performancedeterioration of a pre-selected plurality of applications and the usagestate of the cache, calculate an indicator for the cache sensitivityand/or an indicator for the cache pollutivity of each application.

This makes it possible to calculate the cache sensitivity and cachepollutivity based on the cache usage state of each application.

(2) The performance measurement unit of the cache usage indicatorcalculation apparatus according to (1) is characterized in that

the performance measurement unit uses an average of degrees ofperformance deterioration of a first application among a pre-selectedplurality of applications obtained when the first application isoperated in combination with a second application among the plurality ofapplications, with respect to a performance obtained when the firstapplication is operated alone, as the cache sensitivity of the firstapplication.

This makes it possible to measure the cache sensitivity of theapplication.

(3) The performance measurement unit of the cache usage indicatorcalculation apparatus according to (1) is characterized in that

the performance measurement unit uses an average of degrees ofperformance deterioration of a first application among a pre-selectedplurality of applications obtained when the first application isoperated in combination with a second application among the plurality ofapplications, with respect to a performance obtained when the firstapplication is operated alone, as the cache pollutivity of the secondapplication.

This makes it possible to measure the cache pollutivity of theapplication.

(4) The indicator calculation unit of the cache usage indicatorcalculation apparatus according to any one of (1) to (3) ischaracterized in that

the indicator calculation unit performs multiple regression analysisusing the performance deterioration of each application as a targetvariable and the usage state of the cache as a descriptive variable, andcalculates a partial regression coefficient.

This makes it possible to specify the usage state of the cache thatcontributes to the cache sensitivity and/or the cache pollutivity of theapplication.

(5) The cache usage indicator calculation apparatus according to (4) ischaracterized by further including

a calculation unit configured to calculate the cache sensitivity and/orthe cache pollutivity of an application based on the partial regressioncoefficient and the usage state of the cache.

This makes it possible to calculate the cache sensitivity and/or thecache pollutivity by measuring the cache usage state of a givenapplication.

(6) A cache usage indicator calculation method is characterized in that

a computer including

a memory for reading and writing data,

a cache that can be accessed more rapidly than the memory, and

a central processing unit configured to read and write from and to thememory and the cache and execute processing,

executes:

-   -   a step of measuring a usage state of the cache used by an        application executed by the central processing unit;    -   a step of measuring a cache sensitivity and/or a cache        pollutivity relating to a pre-selected plurality of        applications; and    -   a step of calculating, based on the performance deterioration of        each application and the usage state of the cache, an indicator        for the cache sensitivity and/or an indicator for the cache        pollutivity of each application.

This makes it possible to calculate the cache sensitivity and cachepollutivity based on the cache usage state of each application.

(7) The cache usage indicator calculation method according to (6) ischaracterized by further executing

a step of calculating the cache sensitivity and/or the cache pollutivityof an application based on the indicator and the usage state of thecache.

This makes it possible to calculate the cache sensitivity and/or thecache pollutivity by measuring the cache usage state of a givenapplication.

(8) A cache usage indicator calculation program is for causing

a computer including

a memory for reading and writing data,

a cache that can be accessed more rapidly than the memory, and

a central processing unit configured to read and write from and to thememory and the cache and execute processing,

to execute:

-   -   a procedure of measuring a usage state of the cache used by an        application executed by the central processing unit;    -   a procedure of measuring a cache sensitivity and/or a cache        pollutivity relating to a pre-selected plurality of        applications; and    -   a procedure of calculating, based on the performance        deterioration of each application and the usage state of the        cache, an indicator for the cache sensitivity and/or an        indicator for the cache pollutivity of each application.

This makes it possible to calculate the cache sensitivity and cachepollutivity based on the cache usage state of each application.

VARIATIONS

The present invention is not limited to the above-described embodiment,can be modified without departing from the gist of the presentinvention, and for example, variations such as the following (a) to (c)are possible.

(a) The applications shown in FIG. 5 are exemplary, and there is nolimitation to these applications.

(b) A virtual machine or a container may also be included in theapplication being measured.

(c) Either one of the cache sensitivity and the cache pollutivity may becalculated.

REFERENCE SIGNS LIST

-   1 Cache evaluation indicator acquisition system-   11, 11 a to 11 d Application-   12 Cache usage indicator calculation unit-   121 Cache usage amount measurement unit (usage state measurement    unit)-   122 Application performance measurement unit (performance    measurement unit)-   123 Cache evaluation indicator calculation unit (indicator    calculation unit)-   124 Sensitivity calculation unit (calculation unit)-   125 Pollutivity calculation unit (calculation unit)-   126 Database unit-   2 OS-   3 Physical host-   31, 31 a to 31 d CPU core (central processing unit)-   32 a to 32 d Primary cache memory-   33 a to 33 d Secondary cache memory-   34 Tertiary cache memory (cache)-   35 Main memory (memory)

1. A cache usage indicator calculation apparatus comprising: a memoryfor reading and writing data; a cache configured to be accessed morerapidly than the memory; a central processing unit configured to readand write from and to the memory and the cache and execute processing; ausage state measurement unit, including one or more processors,configured to measure a usage state of the cache used by an applicationexecuted by the central processing unit; a performance measurement unit,including one or more processors, configured to measure a cachesensitivity and a cache pollutivity relating to an application; and anindicator calculation unit, including one or more processors, configuredto, based on performance deterioration of a pre-selected plurality ofapplications and the usage state of the cache, calculate an indicatorfor the cache sensitivity and/or an indicator for the cache pollutivityof each application.
 2. The cache usage indicator calculation apparatusaccording to claim 1, wherein the performance measurement unit isconfigured to use an average of degrees of performance deterioration ofa first application among a pre-selected plurality of applicationsobtained when the first application is operated in combination with asecond application among the plurality of applications, with respect toa performance obtained when the first application is operated alone, asthe cache sensitivity of the first application.
 3. The cache usageindicator calculation apparatus according to claim 1, wherein theperformance measurement unit is configured to use an average of degreesof performance deterioration of a first application among a pre-selectedplurality of applications obtained when the first application isoperated in combination with a second application among the plurality ofapplications, with respect to a performance obtained when the firstapplication is operated alone, as the cache pollutivity of the secondapplication.
 4. The cache usage indicator calculation apparatusaccording to claim 1, wherein the indicator calculation unit isconfigured to perform multiple regression analysis using the performancedeterioration of each application as a target variable and the usagestate of the cache as a descriptive variable, and calculate a partialregression coefficient.
 5. The cache usage indicator calculationapparatus according to claim 4, further comprising a calculation unitincluding one or more processors, configured to calculate one or more ofthe cache sensitivity or the cache pollutivity of an application basedon the partial regression coefficient and the usage state of the cache.6. A cache usage indicator calculation method, executed by a computerincluding a memory for reading and writing data, a cache that can beaccessed more rapidly than the memory, and a central processing unitconfigured to read and write from and to the memory and the cache andexecute processing, the method comprising: a step of measuring a usagestate of the cache used by an application executed by the centralprocessing unit; a step of measuring one or more of a cache sensitivityor a cache pollutivity relating to a pre-selected plurality ofapplications; and a step of calculating, based on the performancedeterioration of each application and the usage state of the cache, anindicator for one or more of the cache sensitivity or an indicator forthe cache pollutivity of each application.
 7. The cache usage indicatorcalculation method according to claim 6, further comprising a step ofcalculating one or more of the cache sensitivity or the cachepollutivity of an application based on the indicator and the usage stateof the cache.
 8. A non-transitory computer readable medium storing acache usage indicator calculation program for causing a computerincluding a memory for reading and writing data, a cache that can beaccessed more rapidly than the memory, and a central processing unitconfigured to read and write from and to the memory and the cache andexecute processing, to execute: a step of measuring a usage state of thecache used by an application executed by the central processing unit; astep of measuring a cache sensitivity and/or a cache pollutivityrelating to a pre-selected plurality of applications; and a step ofcalculating, based on the performance deterioration of each applicationand the usage state of the cache, an indicator for the cache sensitivityand/or an indicator for the cache pollutivity of each application. 9.The cache usage indicator calculation method according to claim 6,further comprising: using an average of degrees of performancedeterioration of a first application among a pre-selected plurality ofapplications obtained when the first application is operated incombination with a second application among the plurality ofapplications, with respect to a performance obtained when the firstapplication is operated alone, as the cache sensitivity of the firstapplication.
 10. The cache usage indicator calculation method accordingto claim 6, further comprising: using an average of degrees ofperformance deterioration of a first application among a pre-selectedplurality of applications obtained when the first application isoperated in combination with a second application among the plurality ofapplications, with respect to a performance obtained when the firstapplication is operated alone, as the cache pollutivity of the secondapplication.
 11. The cache usage indicator calculation method accordingto claim 6, further comprising: performing multiple regression analysisusing the performance deterioration of each application as a targetvariable and the usage state of the cache as a descriptive variable, andcalculates a partial regression coefficient.
 12. The cache usageindicator calculation method according to claim 11, further comprising:calculating the cache sensitivity and/or the cache pollutivity of anapplication based on the partial regression coefficient and the usagestate of the cache.
 13. The non-transitory computer readable mediumaccording to claim 8, wherein the cache usage indicator calculationprogram further causing the computer to perform: using an average ofdegrees of performance deterioration of a first application among apre-selected plurality of applications obtained when the firstapplication is operated in combination with a second application amongthe plurality of applications, with respect to a performance obtainedwhen the first application is operated alone, as the cache sensitivityof the first application.
 14. The non-transitory computer readablemedium according to claim 8, wherein the cache usage indicatorcalculation program further causing the computer to execute: using anaverage of degrees of performance deterioration of a first applicationamong a pre-selected plurality of applications obtained when the firstapplication is operated in combination with a second application amongthe plurality of applications, with respect to a performance obtainedwhen the first application is operated alone, as the cache pollutivityof the second application.
 15. The non-transitory computer readablemedium according to claim 8, wherein the cache usage indicatorcalculation program further causing the computer to execute: performingmultiple regression analysis using the performance deterioration of eachapplication as a target variable and the usage state of the cache as adescriptive variable, and calculates a partial regression coefficient.16. The non-transitory computer readable medium according to claim 15,wherein the cache usage indicator calculation program further causingthe computer to execute: calculating the cache sensitivity and/or thecache pollutivity of an application based on the partial regressioncoefficient and the usage state of the cache.